package com.briup.bean;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User implements Serializable {

    /**
    * 用户id
    */
    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
    * 用户名
    */
    @ExcelProperty
    private String name;
    /**
    * 年龄
    */
    private Integer age;
    /**
    * 性别:0为女性,1为男性
    */
    private Integer gender;
    /**
    * 地址
    */
    private String address;
    /**
    * 创建时间
    */
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
    * 工资
    */
    private Double salary;

}
